package com.monlyu.vo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import com.monlyu.annotation.Comment;

/*******************************************************************************
 * 
 * <b>功能描述☞</b>稿件表<br>
 * 
 * <b>开发公司☞</b>重庆唯尼科技有限公司<br>
 * <b>版权☞</b>本文件归重庆唯尼科技有限公司所有<br>
 * <b>项目名☞</b>news<br>
 * <b>文件路径☞</b>com.monlyu.vo.Voice.java<br>
 * <b>开发日期☞</b>2010-3-1 <br>
 * 
 * @author Mketiy
 * @since JDK 5
 * @version 1.0.8
 * 
 ******************************************************************************/
@Entity(name = "t_voice")
public class Voice {
	@Id
	@Column(name = "m_id")
	@Comment(common = "编号")
	private Long id;

	@ManyToOne
	@JoinColumn(name = "m_manscript", nullable = false)
	@Comment(common = "对应的稿件编号")
	private Manuscript manuscript;

	@ManyToOne
	@JoinColumn(name = "m_user", nullable = false)
	@Comment(common = "配音人员")
	private User puser;

	@Column(name = "m_timeLong")
	@Comment(common = "配音时长")
	private Long timeLong;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getTimeLong() {
		return timeLong;
	}

	public void setTimeLong(Long timeLong) {
		this.timeLong = timeLong;
	}

	public Manuscript getManuscript() {
		return manuscript;
	}

	public void setManuscript(Manuscript manuscript) {
		this.manuscript = manuscript;
	}

	public User getPuser() {
		return puser;
	}

	public void setPuser(User puser) {
		this.puser = puser;
	}

}
